package com.hailian.fintech.hlhouse_statusserver.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author hanbo
 * @since 2020-06-01
 */
@Data
@Accessors(chain = true)
@TableName("hl_housing")
public class Housing extends Model<Housing> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 楼盘id
     */
    private Integer bid;

    private Integer rent;

    @TableField("house_image")
    private String houseImage;

    private String tower;

    private String unit;

    private String door;

    private String room;

    private String hall;
    @TableField("house_type_id")
    private Integer houseTypeId;
    @TableField("house_rent_id")
    private Integer houseRentId;

    private String status;

    private Integer number;

    private String finish;

    private String floor;
    @TableField("floor_sum")
    private String floorSum;

    /**
     * 状态 id
     */
    private Integer sid;

    private String graph;

    private String cash;

    private String bill;
    @TableField("public_image")
    private String publicImage;

    private String introduce;

    private Integer deposit;

    private Integer rental;

    /**
     * 管家id
     */
    private Integer stid;

    /**
     * 公寓名称
     */
    @TableField("apartment_name")
    private String apartmentName;

    /**
     * 楼盘名称
     */
    @TableField(exist = false)
    private String bName;
    /**
     * 房源名称 分散式 集中式
     */
    @TableField(exist = false)
    private String houseTypeName;
    /**
     * 租房名称 合租 整租
     */
    @TableField(exist = false)
    private String houseRentName;
    /**
     * 管家名称
     */
    @TableField(exist = false)
    private String sName;
    /**
     * 状态名称
     */
    @TableField(exist = false)
    private String stName;




    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
